home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
dll_gen
/
strplus
/
textout.frm
< prev
next >
Wrap
Text File
|
1994-07-19
|
3KB
|
70 lines
VERSION 2.00
Begin Form TextOut
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Double
Caption = "SuperPrint Demo"
ClientHeight = 5505
ClientLeft = 1020
ClientTop = 870
ClientWidth = 7365
ControlBox = 0 'False
Height = 5910
Left = 960
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5505
ScaleWidth = 7365
Top = 525
Width = 7485
Begin CommandButton Command1
Cancel = -1 'True
Caption = "O &K A Y"
Default = -1 'True
Height = 375
Left = 2280
TabIndex = 0
Top = 4920
Width = 3015
End
End
Sub Command1_Click ()
Unload Me
End Sub
Sub Form_Load ()
FormCenterScreen Me
Screen.MousePointer = 0
'SuperPrint samples are in Paint event
End Sub
Sub Form_Paint ()
DoForm3D Me, sunken, 3, 0
DoForm3D Me, raised, 1, 3
SuperPrint Me.hDC, 20, 100, "A sample string!", "Arial", "bold", "raised", "left", 12, QBColor(4), WordColor("BtnHighlight"), 45
SuperPrint Me.hDC, 140, 240, "Another sample string!", "Times New Roman", "bolditalic", "sunken", "left", 16, QBColor(1), WordColor("BtnHighlight"), 90
SuperPrint Me.hDC, 250, 40, "Displays normal text too!", "Times New Roman", "bold", "plain", "left", 16, QBColor(0), WordColor("BtnHighlight"), 0
SuperPrint Me.hDC, 250, 70, "Raised Letter Effect!", "Times New Roman", "bold", "raised", "left", 16, QBColor(0), WordColor("BtnHighlight"), 0
SuperPrint Me.hDC, 250, 100, "Sunken Letter Effect!", "Times New Roman", "bold", "sunken", "left", 16, QBColor(0), QBColor(15), 0
SuperPrint Me.hDC, 200, 20, "Horizontal Effects are EASY!", "Times New Roman", "bold", "raised", "left", 14, QBColor(1), QBColor(15), 270
SuperPrint Me.hDC, 480, 180, "And UpsideDown Text Too!", "Arial", "bold", "plain", "left", 14, QBColor(1), QBColor(15), 180
HorzCenter% = (Me.Width / 2) / Screen.TwipsPerPixelX
'VertCenter% = (Me.Height / 2) / Screen.TwipsPerPixelY
SuperPrint Me.hDC, HorzCenter%, 270, "All done with SuperPrint!", "Arial", "bold", "sunken", "center", 18, WordColor("Green"), WordColor("BrightGreen"), 0
OldScale% = Me.ScaleMode
OldForeColor& = Me.ForeColor
Me.ScaleMode = 3
Me.ForeColor = QBColor(15)
Me.Line (340, 180)-(340, 260)
Me.ForeColor = OldForeColor&
Me.ScaleMode = OldScale%
SuperPrint Me.hDC, 340, 190, "Left Aligned", "Arial", "bold", "plain", "left", 12, QBColor(4), QBColor(15), 0
SuperPrint Me.hDC, 340, 210, "Center Aligned", "Arial", "bold", "plain", "center", 12, QBColor(4), QBColor(15), 0
SuperPrint Me.hDC, 340, 230, "Right Aligned", "Arial", "bold", "plain", "right", 12, QBColor(4), QBColor(15), 0
End Sub